#{extends 'main.html' /}

#{set 'moreStyles'}
     #{stylesheet 'story.css'/}
#{/set}

#{set title:'故事列表' /}

<div class="story_body">
	<div class="story_left">
		<div class="add_story_btn" align="center">
			<a href="@{stories.edit()}">写故事</a>
		</div>
		#{list stories , as: 's'}
			<div class="story_item">
				<div class="story_item_title">
					<a href="@{stories.view(s.id)}">${s.title}</a>
				</div>
				<div class="story_item_desc">${s.description}</div>
				<div class="story_item_last_update">
								[2011-12-12 12:31:22 更新]:
								最后的更新内容[图片]这是最后更新
				</div>
				<div class="story_item_operate">
					<a href="@{stories.delete(s.id)}" onclick="return confirm('确认要删除么？')">删除</a>
					<a href="@{stories.edit(s.id)}">编辑</a>
				</div>
			</div>
		#{/list}
	</div>
	<div class="story_right">
		<div class="photo">
			
		</div>
	</div>
</div>